<template>
  <div>
    <span @click="Toback" style="cursor: pointer;color:blue">返回</span>
    <p>页面A</p>
    <!-- <router-link to="/DlB">页面B</router-link> -->
    <button @click="ToB">去页面B</button>
    <el-input v-model="something" placeholder="请输入需要传入的参数"></el-input>
  </div>
</template>

<script>
// import DlB from '@/view/practiceDl/dl/dayThree/B'
export default {
  data() {
    return {
      something: '',
    }
  },
  methods: {
    Toback() {
      this.$router.go(-1)
    },
    ToB() {
      this.$router.push({
        path: '/dl/DlB',
        // name:'PageB',
        query: {
          something: this.something,
        },
        // ？？？页面c不显示
        params:{
            something:this.something,
        },
      })
    },
  },
}
</script>

<style scoped></style>
